<?php

/**
 * Mujeres form base class.
 *
 * @package    form
 * @subpackage mujeres
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 8807 2008-05-06 14:12:28Z fabien $
 */
class BaseMujeresForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'          => new sfWidgetFormInputHidden(),
      'numhistoria' => new sfWidgetFormPropelSelect(array('model' => 'Historia', 'add_empty' => false)),
      'ginocologo'  => new sfWidgetFormInputCheckbox(),
      'cito'        => new sfWidgetFormInputCheckbox(),
      'cito_frec'   => new sfWidgetFormInput(),
      'resultado'   => new sfWidgetFormInput(),
      'exa_gino'    => new sfWidgetFormInput(),
      'embarazada'  => new sfWidgetFormInputCheckbox(),
      'dudas'       => new sfWidgetFormInputCheckbox(),
      'd_frec'      => new sfWidgetFormInput(),
      'control'     => new sfWidgetFormInput(),
      'cp_frec'     => new sfWidgetFormInput(),
      'pro_emb'     => new sfWidgetFormInput(),
      'mamografia'  => new sfWidgetFormInput(),
      'its'         => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'id'          => new sfValidatorPropelChoice(array('model' => 'Mujeres', 'column' => 'id', 'required' => false)),
      'numhistoria' => new sfValidatorPropelChoice(array('model' => 'Historia', 'column' => 'id')),
      'ginocologo'  => new sfValidatorBoolean(array('required' => false)),
      'cito'        => new sfValidatorBoolean(array('required' => false)),
      'cito_frec'   => new sfValidatorString(array('max_length' => 25, 'required' => false)),
      'resultado'   => new sfValidatorString(array('max_length' => 25, 'required' => false)),
      'exa_gino'    => new sfValidatorString(array('max_length' => 25, 'required' => false)),
      'embarazada'  => new sfValidatorBoolean(array('required' => false)),
      'dudas'       => new sfValidatorBoolean(array('required' => false)),
      'd_frec'      => new sfValidatorString(array('max_length' => 25, 'required' => false)),
      'control'     => new sfValidatorString(array('max_length' => 25, 'required' => false)),
      'cp_frec'     => new sfValidatorString(array('max_length' => 25, 'required' => false)),
      'pro_emb'     => new sfValidatorString(array('max_length' => 25, 'required' => false)),
      'mamografia'  => new sfValidatorString(array('max_length' => 25, 'required' => false)),
      'its'         => new sfValidatorString(array('max_length' => 25, 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('mujeres[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Mujeres';
  }


}
